#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "Server.h"
#include "Log/TextEditLog.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

	Server _server;

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

	static Log::TextEditLog _logManager;
	static void addLogMsg(QString msg, Log::ILogManager::LogType type = Log::ILogManager::INFO);

private:
    Ui::MainWindow *ui;

private slots:
	void onRecieveData(QByteArray msg);
	void onBtn();
};

#endif // MAINWINDOW_H
